package com.app.store.Utils;

/**
 * Created by song on 2018/1/11.
 */
    public enum AppTypeEnum{
        IOS("iOS","01"),
        ANDROID("Android","02");
        private String name;
        private String key;
        AppTypeEnum(String name, String key){
            this.name = name;
            this.key = key;
        }
        public static AppTypeEnum getNameByKey(String key){
            for(AppTypeEnum appTypeEnum:AppTypeEnum.values()){
                if(appTypeEnum.key == key){
                    return appTypeEnum;
                }
            }
            return null;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }
    }

